package cn.schoolwow.quickdao.module.database.dml.common.service;

import cn.schoolwow.quickdao.module.database.dml.json.flow.common.SetJSONObjectEntityFlow;
import cn.schoolwow.quickdao.module.database.dml.json.flow.common.filter.FilterJSONArrayByConstraintFlow;
import cn.schoolwow.quickdao.module.database.dml.json.flow.common.filter.FilterJSONArrayBySameUniqueFieldFlow;
import cn.schoolwow.quickflow.QuickFlowExecutor;
import cn.schoolwow.quickflow.flow.CompositeBusinessFlow;

public class GetJSONArrayReasonMapCompositeBusiness implements CompositeBusinessFlow {
    @Override
    public void executeCompositeBusiness(QuickFlowExecutor quickFlowExecutor) {
        quickFlowExecutor.next(new SetJSONObjectEntityFlow())
                .next(new FilterJSONArrayBySameUniqueFieldFlow())
                .next(new FilterJSONArrayByConstraintFlow());
    }

    @Override
    public String name() {
        return "获取不符合约束的JSONArray";
    }
}
